﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace LosConn.Web.User
{
    public partial class UserAdd : BasePage.AdminBasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                BindRole();
            }
        }

        private void BindRole()
        {
            User_Role_RoleID.DataSource = new BLL.Los_User().GetRoleList("");
            User_Role_RoleID.DataTextField = "Role_Name";
            User_Role_RoleID.DataValueField = "Role_ID";
            User_Role_RoleID.DataBind();

            User_RetailID.DataSource = new BLL.Los_Retail().GetList("");
            User_RetailID.DataTextField = "Retail_Name";
            User_RetailID.DataValueField = "Retail_ID";
            User_RetailID.DataBind();
        }
    }
}